package com.opensky.qatest.util.common;

public class GeneratedCredentials {
    
    private static final String EMAIL_SUFIX= "@gmail.com";

    private String firstName;
    
    private String lastName;
    
    private String email;
    
    private String password;
    
    public GeneratedCredentials(int keySize) {
	firstName = StringGenerator.generateWord(keySize);
	lastName = StringGenerator.generateWord(keySize);
	email = StringGenerator.generateWord(keySize) + EMAIL_SUFIX;
	password = StringGenerator.generateWord(keySize);
    }

    public String getFirstName() {
        return firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public String getEmail() {
        return email;
    }

    public String getPassword() {
        return password;
    }

    @Override
    public String toString() {
	return "GeneratedCredentials [firstName=" + firstName + ", lastName=" + lastName + ", email=" + email
		+ ", password=" + password + "]";
    }
}
